package com.Yukiha.gachamod.gachaMenu.client;

import com.Yukiha.gachamod.gachaMenu.client.gui.pack.OpenGachaBookPacket;
import com.Yukiha.gachamod.network.ModNetworkHandler;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.Minecraft;
import net.minecraftforge.client.event.RegisterKeyMappingsEvent;
import org.lwjgl.glfw.GLFW;

import java.util.UUID;

public class ModKeyBindings {
//    public static KeyMapping OPEN_GACHA_BOOK;
//
//    public static void register(RegisterKeyMappingsEvent event) {
//        OPEN_GACHA_BOOK = new KeyMapping(
//                "key.gachamod.open_gacha_book", // 显示用名称
//                GLFW.GLFW_KEY_B,                 // 默认绑定 B 键
//                "key.categories.inventory"     // 类别（会出现在设置里）
//        );
//
//        event.register(OPEN_GACHA_BOOK);
//        UUID uuid = Minecraft.getInstance().player.getUUID();
//        ModNetworkHandler.CHANNEL.sendToServer(new OpenGachaBookPacket(uuid));
//
//    }
}